package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    /**
     * 插入细节表一对多
     *
     * @param details
     * @return
     */

    void insertBatchs(List<OrderDetail> details);

    /**
     * 查询用户的订单的详细信息
     *
     * @param id
     * @return
     */
    List<OrderDetail> queryByOrderId(Long id);
}
